from flask import Flask, jsonify

app = Flask(__name__)


@app.route("/index", methods=["post"])
def index():
    status = {"status": 200}
    dict_data = {"code": 200, "msg": "地主说我们是牛马", "token": "奶奶说我们不如牛马"}
    return status and jsonify(dict_data)


@app.route("/login", methods=["post"])
def login():
    status1 = {"status": 200}
    dict_data1 = {"code": 200, "msg": "登录成功", "token": "牛逼轰轰的你终于登录成功了烧年"}
    return status1 and jsonify(dict_data1)


if __name__ == '__main__':
    app.run()
